package ee.entry.html.simple;

import java.util.List;

// TODO 直列化
public class ParsedNode {
	
	int indent = 0;
	String string = null;
	ParsedNode parent = null;
	List<ParsedNode> children= null;
	
	protected ParsedNode(ParsedNode parent, String parsedString){
		string = parsedString;
		this.parent= parent;
		if(this.parent != null){
			indent = this.parent.getIndent() + 1;
		}
		
	}

	/**
	 * @return the indent
	 */
	public int getIndent() {
		return indent;
	}

	/**
	 * @param indent the indent to set
	 */
	public void setIndent(int indent) {
		this.indent = indent;
	}

	/**
	 * @return the string
	 */
	public String getString() {
		return string;
	}

	/**
	 * @param string the string to set
	 */
	public void setString(String string) {
		this.string = string;
	}

	/**
	 * @return the parent
	 */
	public ParsedNode getParent() {
		return parent;
	}

	/**
	 * @param parent the parent to set
	 */
	public void setParent(ParsedNode parent) {
		this.parent = parent;
	}

	/**
	 * @return the children
	 */
	public List<ParsedNode> getChildren() {
		return children;
	}

	/**
	 * @param children the children to set
	 */
	public void setChildren(List<ParsedNode> children) {
		this.children = children;
	}


	
}
